home *** CD-ROM | disk | FTP | other *** search
/ Visual Cafe 3 / Visual Cafe 3.ISO / Vcafe / Main.bin / InvalidArgumentException.java < prev    next >
Text File  |  1998-09-08  |  928b  |  49 lines

  1. package com.symantec.itools.frameworks.application.commandline;
  2.  
  3.  
  4. /**
  5.  * @author Symantec Internet Tools Division
  6.  * @version 1.0
  7.  * @since VCafe 3.0
  8.  */
  9.  
  10. public class InvalidArgumentException 
  11.     extends Exception
  12. {
  13.     /**
  14.      * @since VCafe 3.0
  15.      */
  16.     protected Throwable nestedThrowable;
  17.     
  18.     public InvalidArgumentException()
  19.     {
  20.     }
  21.     
  22.     public InvalidArgumentException( String s )
  23.     {
  24.         super(s);
  25.     }
  26.     
  27.     public InvalidArgumentException(String s, Throwable t)
  28.     {
  29.         super(s + ":" + t.getMessage());
  30.     }
  31.  
  32.     /**
  33.      * @since VCafe 3.0
  34.      */
  35.     
  36.     public String getMessage() 
  37.     {
  38.         if(nestedThrowable == null) 
  39.         {
  40.             return super.getMessage();
  41.         }
  42.         else
  43.         {
  44.             return super.getMessage() + "; nested exception is: \n\t" + nestedThrowable.toString();
  45.         }
  46.     }
  47.     
  48. }
  49.